package com.aismy.admin.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("consultation_message")
public class ConsultationMessage {
    
    @TableId(type = IdType.AUTO)
    private Long id;
    
    private Long consultationId;
    
    private Long senderId;
    
    private String content;
    
    private Boolean isRead;
    
    private LocalDateTime createdAt;

    @TableField(exist = false)
    private Long receiverId;
} 